Integrand size = 12, antiderivative size = 9 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=b x+a \log (\sin (x)) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3164, 3556} \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=a \log (\sin (x))+b x \]
[In]
[Out]
Rule 3164
Rule 3556
Rubi steps \begin{align*} \text {integral}& = \int (b+a \cot (x)) \, dx \\ & = b x+a \int \cot (x) \, dx \\ & = b x+a \log (\sin (x)) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.56 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=b x+a \log (\cos (x))+a \log (\tan (x)) \]
[In]
[Out]
Time = 0.36 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.11
method | result | size |
default | \(x b +a \ln \left (\sin \left (x \right )\right )\) | \(10\) |
parts | \(-a \ln \left (\csc \left (x \right )\right )+x b\) | \(11\) |
risch | \(x b -i a x +a \ln \left ({\mathrm e}^{2 i x}-1\right )\) | \(20\) |
parallelrisch | \(x b +a \ln \left (\csc \left (x \right )-\cot \left (x \right )\right )-a \ln \left (\frac {2}{\cos \left (x \right )+1}\right )\) | \(27\) |
norman | \(\frac {x b +x b \tan \left (\frac {x}{2}\right )^{2}}{1+\tan \left (\frac {x}{2}\right )^{2}}+a \ln \left (\tan \left (\frac {x}{2}\right )\right )-a \ln \left (1+\tan \left (\frac {x}{2}\right )^{2}\right )\) | \(45\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.22 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=b x + a \log \left (\frac {1}{2} \, \sin \left (x\right )\right ) \]
[In]
[Out]
Time = 0.51 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.89 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=a \log {\left (\sin {\left (x \right )} \right )} + b x \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.00 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=b x + a \log \left (\sin \left (x\right )\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 24 vs. \(2 (9) = 18\).
Time = 0.28 (sec) , antiderivative size = 24, normalized size of antiderivative = 2.67 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=b x - a \log \left (\tan \left (\frac {1}{2} \, x\right )^{2} + 1\right ) + a \log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right ) \]
[In]
[Out]
Time = 21.16 (sec) , antiderivative size = 54, normalized size of antiderivative = 6.00 \[ \int \csc (x) (a \cos (x)+b \sin (x)) \, dx=a\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )-a\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )-\mathrm {i}\right )-a\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )+1{}\mathrm {i}\right )-b\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )-\mathrm {i}\right )\,1{}\mathrm {i}+b\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )+1{}\mathrm {i}\right )\,1{}\mathrm {i} \]
[In]
[Out]